'use strict';

angular.module('backofficeApp.topicManager.services', ['ngResource']).
    factory('topicService', function ($resource) {
        return $resource('http://' + backOfficeHost + '/rest/v1.0/backoffice/Systems/:action',
            {
                postTopicService: {
                    method: 'POST',
                    params: {
                        action: "postSpecialTopic"
                    },
                    headers: {
                        'Content-Type': 'application/json'
                    }
                }
            },
            {
                uploadImages: {
                    method: 'POST',
                    params: {
                        action: "backOfficeUploadImages"
                    },
                    headers: {
                        'Content-Type': 'application/json'
                    }
                }
            }
        );
    }).factory('spectialTopicService',function($resource){
        return $resource('http://' + backOfficeHost + '/rest/v1.0/backoffice/Systems/generateAllTopics',{},{})


    });
